<h1>Consultas</h1>

<table>
    <thead>
        <tr>
            <th>Id</th>
            <th>Paciente</th>
            <th>Consultorio</th>
            <th>Fecha</th>
            <th>Hora</th>
            <th>Trabajo</th>
            <th>Costo</th>
            <th>Pago</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($Consultas as $Consulta): ?>
            <tr>
                <td><a href="<?php echo url_for('consulta/show?id=' . $Consulta->getId()) ?>"><?php echo $Consulta->getId() ?></a></td>
                <td><?php echo $Consulta->getPaciente() ?></td>
                <td><?php echo $Consulta->getConsultorio() ?></td>
                <td><?php echo $Consulta->getFecha() ?></td>
                <td><?php echo $Consulta->getHora() ?></td>
                <td><?php echo $Consulta->getTrabajo() ?></td>
                <td><?php echo $Consulta->getCosto() ?></td>
                <td><?php echo $Consulta->getPago() ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<hr />
&nbsp;<a href="<?php echo url_for('panel/index') ?>">Volver a Panel</a>
<a href="<?php echo url_for('consulta/new') ?>">Nueva consulta</a>
